import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './routes'
// 引入swiper样式
import 'swiper/css/swiper.min.css'
// 引入store
import store from './store/index.js'

import VueLazyload from 'vue-lazyload'

Vue.use(VueLazyload)
Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('../src/assets/lazy/404error.png'),
  loading: require('../src/assets/lazy/imageLoading.png'),
  attempt: 1,
})

new Vue({
  render: (h) => h(App),
  router,
  store,
}).$mount('#app')
